<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 13:40
 */

namespace util\validate\rules;

/**
 * 验证值是否是手机号码
 *
 * Class Phone
 * @package validate\rules、
 */
class Phone extends BaseRule
{
    public function verify()
    {
        $match = '/^1[3456789]{1}\d{9}$/';
        return preg_match($match, $this->value);
    }
}